<?php

namespace api\energy\factory\water;

use api\energy\common\Request;

/**
 * 查询水表日冻结
 *
 * @method QueryWaterMeterDayFreeze setstart_time(string $data) 开始日期
 * @method QueryWaterMeterDayFreeze setend_time(string $data) 结束日期
 * @method QueryWaterMeterDayFreeze setpage(int $data) 页码
 * @method QueryWaterMeterDayFreeze setlimit(int $data) 每页数量
 * @method QueryWaterMeterDayFreeze setmeter_address(string|array $data) 电表编号
 */
class QueryWaterMeterDayFreeze extends Request
{

    public function __construct(string $startTime, string $endTime, int $page = null, int $limit = null)
    {
        $startTime && $this->setstart_time($startTime);
        $endTime && $this->setend_time($endTime);
        $page && $this->setpage($page);
        $limit && $this->setlimit($limit);
    }

    public function build()
    {
        $this->setUrl("/water/dayFreeze");
        $this->setMethod('POST');

        $this->setRequestData($this->getRequestData());
    }

}